package com.usian.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.mapper.SysUserMapper;
import com.usian.mapper.UserMapper;
import com.usian.pojo.SysUser;
import com.usian.pojo.SysUserVo;
import com.usian.service.SysUserService;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Override
    public Page findPage(SysUserVo sysUserVo) {
        //设置分页
        Page<SysUser> page = new Page<>(sysUserVo.getPage(), sysUserVo.getSize());
        //分页查询
        Page<SysUser> userPage = getBaseMapper().findPage(page, sysUserVo);
        return userPage;
    }
}
